package com.bugsnag.ohos;

/**
 * DeviceBuildInfo
 *
 * @since 2021-07-02
 */
public class DeviceBuildInfo {
    String manufacturer;
    String model;
    String osVersion;
    int apiLevel;
    String osBuild;
    String fingerprint;
    String tags;
    String brand;
    String[] cpuAbis;

    /**
     * constructor
     *
     * @param manufacturer
     * @param model
     * @param osVersion
     * @param apiLevel
     * @param osBuild
     * @param fingerprint
     * @param tags
     * @param brand
     * @param cpuAbis
     */
    public DeviceBuildInfo(String manufacturer, String model, String osVersion,
                           int apiLevel, String osBuild, String fingerprint,
                           String tags, String brand, String[] cpuAbis) {
        this.manufacturer = manufacturer;
        this.model = model;
        this.osVersion = osVersion;
        this.apiLevel = apiLevel;
        this.osBuild = osBuild;
        this.fingerprint = fingerprint;
        this.tags = tags;
        this.brand = brand;
        this.cpuAbis = cpuAbis;
    }

    public static DeviceBuildInfo defaultInfo(){
        String[] cpuAbis2 = new String[]{"arm64-v8a",
            "armeabi-v7a",
            "armeabi"};
        return new DeviceBuildInfo(
            "MANUFACTURER",
            "MODEL",
            "10",
            1,
            "osBuild",
            "FINGERPRINT",
            "Build.TAGS",
            "HUAWEI",
            cpuAbis2
        );
    }
}
